-- GENERATED SPELL FOR [Razaani Raider] --


function spell0_20601(pUnit, Event) --@Energy Flare,n/a--
pUnit:FullCastSpellOnTarget(35922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20601', 5343, 1)
end

function Sorts_20601(pUnit, Event)
local choix_sorts_20601 = math.random(0, 0)
if choix_sorts_20601 == 0 then
pUnit:RegisterEvent('spell0_20601', 1, 1)
end
end

function mob20601_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20601', math.random(1500, 3000), 1)
end

function mob20601_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20601_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20601_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20601, 1, 'mob20601_Action')
RegisterUnitEvent(20601, 2, 'mob20601_Leave')
RegisterUnitEvent(20601, 3, 'mob20601_Kill')
RegisterUnitEvent(20601, 4, 'mob20601_Die')
